package com.cavy.platform.server.dto;

import lombok.Data;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Data
public class PluginDto {
    //名称
    private String name;
    private String version;
    //描述(md格式)
    private String description;
    //镜像
    private String image;
    //命令
    private String command;
    //运行插件的user
    private String user;
    //挂载的卷
    // container_path,host_path,tips
    private Set<PluginVolumeDto> volumes = new HashSet<>();
    //环境变量
    // name,value,tips
    private Set<PluginEnvironmentDto> environments = new HashSet<>();
    //工作目录
    private String workDir;
    //创建时间
    private Date createTime;
    //是否禁用
    private boolean disable = false;
    //仓库信息
    private PluginRepositorySettingDto repositoryInfo;
}
